// object 类型
let o:object ={};
let o1:object =[{}];
let o2:object = Object();

let o3:{name:string,age:number} = { name:'张学友',age:18}

// enum 枚举类型
enum Gender{
    male,female,unknow
}
enum Gender1{
    male=1,female=0,unknow=-1
}

let gender:Gender = Gender.male;

let obnj = {
    gender:Gender.male
}

// 类型断言
// let stri:any = 'abc';
// let len:number =stri.length 这样会出问题 但是TS不会提示

let stri:any = 'abc';
let len:number =(<string>stri).length 

